﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ViewRidgeAssistant
{
    public partial class reports : Form
    {
        public reports()
        {
            InitializeComponent();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            if (this.lb_report_items.SelectedItem == null) { return; };
            this.lb_in_report_items.Items.Add(this.lb_report_items.SelectedItem.ToString());
            this.lb_report_items.Items.Remove(this.lb_report_items.SelectedItem);
        }

        private void b_del_Click(object sender, EventArgs e)
        {
            if (this.lb_in_report_items.SelectedItem == null) { return; };
            this.lb_report_items.Items.Add(this.lb_in_report_items.SelectedItem.ToString());
            this.lb_in_report_items.Items.Remove(this.lb_in_report_items.SelectedItem);
        }

        private void b_add_all_Click(object sender, EventArgs e)
        {
            foreach (string item in this.lb_report_items.Items)
            {
                this.lb_in_report_items.Items.Add(item);
            }
            this.lb_report_items.Items.Clear();
        }

        private void b_del_all_Click(object sender, EventArgs e)
        {
            foreach (string item in this.lb_in_report_items.Items)
            {
                this.lb_report_items.Items.Add(item);
            }
            this.lb_in_report_items.Items.Clear();
        }
    }
}
